"use strict";
const common_vendor = require("../../../../../../common/vendor.js");
const common_assets = require("../../../../../../common/assets.js");
if (!Array) {
  const _easycom_up_text2 = common_vendor.resolveComponent("up-text");
  _easycom_up_text2();
}
const _easycom_up_text = () => "../../../../../../node-modules/uview-plus/components/u-text/u-text.js";
if (!Math) {
  _easycom_up_text();
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "index",
  setup(__props) {
    const diseases = common_vendor.ref(
      [{
        name: "高血压",
        time: "1年1月"
      }, {
        name: "糖尿病",
        time: "5年4月"
      }]
    );
    function removeDisease(index) {
      diseases.value.splice(index, 1);
    }
    return (_ctx, _cache) => {
      return {
        a: common_vendor.p({
          text: "体力状态",
          bold: "true"
        }),
        b: common_vendor.p({
          text: ">",
          align: "right"
        }),
        c: common_vendor.p({
          text: "1分（良好）"
        }),
        d: common_vendor.f(diseases.value, (disease, index, i0) => {
          return {
            a: "4ba6a099-3-" + i0,
            b: common_vendor.p({
              text: disease.name,
              bold: "true"
            }),
            c: common_vendor.o(removeDisease, index),
            d: "4ba6a099-4-" + i0,
            e: common_vendor.p({
              type: "info",
              text: `确诊时间：${disease.time}`
            }),
            f: index
          };
        }),
        e: common_assets._imports_0$2,
        f: common_assets._imports_1,
        g: common_vendor.p({
          text: "添加病种",
          bold: "true"
        })
      };
    };
  }
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4ba6a099"]]);
wx.createPage(MiniProgramPage);
